package com.wgchao.amc.entity.base;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * @作者  wgchao
 * @时间 2019-10-14 
 * @用途  
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table ( name ="sys_base_agency" )
public class SysBaseAgency  implements Serializable {

	private static final long serialVersionUID =  3613339009271408627L;

	/**
	 * 机构编号
	 */
	@Id
   	@Column(name = "agency_code" )
	private String agencyCode;

	/**
	 * 机构名称
	 */
   	@Column(name = "agency_name" )
	private String agencyName;

	/**
	 * 机构地址
	 */
   	@Column(name = "agency_addr" )
	private String agencyAddr;

	/**
	 * 备注
	 */
   	@Column(name = "remark" )
	private String remark;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 创建人
	 */
   	@Column(name = "create_user" )
	private Long createUser;

	/**
	 * 最近更新时间
	 */
   	@Column(name = "last_update_time" )
	private Date lastUpdateTime;

	/**
	 * 最近更新人
	 */
   	@Column(name = "last_update_user" )
	private Long lastUpdateUser;

	/**
	 * 注销标志
	 */
   	@Column(name = "cancel" )
	private boolean cancel;

	/**
	 * 删除标志
	 */
   	@Column(name = "del" )
	private boolean del;

	/**
	 * 删除时间
	 */
   	@Column(name = "del_time" )
	private Date delTime;

	/**
	 * 删除人
	 */
   	@Column(name = "del_user" )
	private Long delUser;

	/**
	 * 父机构编号
	 */
	@Column(name = "par_code" )
   	private String parCode;

}
